//let currentEnv = process.env.NODE_ENV === 'development'? "dev" : "prod";
let currentEnv = "prod"

const env = {
    // //测试
    // local: {
    //     baseUrl_v1: "http://www.rhwsdtcs.whws.com/applet/",
    //     imgBaseUrl: "https://rhws.oss-cn-chengdu.aliyuncs.com/",
    //     ossBaseUrl: "",
    // },
    // dev: {
    //     baseUrl_v1: "http://www.rhwsdtcs.whws.com/api/applet/",
    //     imgBaseUrl: "https://rhws.oss-cn-chengdu.aliyuncs.com/",
    //     ossBaseUrl: "",
    // },
    //正式
    prod: {
		// baseUrl_v1: "https://debug-api.rhwsdt.com/api",
        baseUrl_v1: "https://rhwssz.rhwsdt.com/applet/",
        imgBaseUrl: "https://rhws.oss-cn-chengdu.aliyuncs.com/",
        ossBaseUrl: "",
    }
};
const config = env[currentEnv];
config.env = currentEnv;
config.uploadUrl = config.baseUrl_v1 + "fileUpload";
config.color = "#3F7DFF";

export const imgBaseUrl = imgBaseUrl;
export const imgBaseUrlV0 = config.imgBaseUrl + "icon_v0/";
export const imgBaseUrlV1 = config.imgBaseUrl + "icon_v1/";
export const imgBaseUrlV2 = config.imgBaseUrl + "icon_v2/";
export const uploadUrl = config.baseUrl_v1 + "fileUpload";
export const ERR_OK = 200;
export default config;